package com.baizhi.shane.sys.enums;

import io.swagger.annotations.ApiModel;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 闻柏智
 * @date 2023/07/29 17:38:38
 */
@ApiModel("行政区划级别枚举")
public enum SysDivisionLevelEnum {

    PROVINCIAL(1,"省级","provincial"),
    MUNICIPAL(2,"市级","municipal"),
    DISTRICT(3,"区县级","district");

    private Integer level;
    private String levelName;
    private String levelNameEn;

    SysDivisionLevelEnum(Integer level, String levelName, String levelNameEn) {
        this.level = level;
        this.levelName = levelName;
        this.levelNameEn = levelNameEn;
    }

    public Integer getLevel() {
        return level;
    }

    public String getLevelName() {
        return levelName;
    }

    public String getLevelNameEn() {
        return levelNameEn;
    }
    /* 获取所有成员的所有属性,返回List类型 */
    public static List<SysDivisionLevelEnum> getAllEnum() {
        List<SysDivisionLevelEnum> list = new ArrayList<>();
        for (SysDivisionLevelEnum e : SysDivisionLevelEnum.values()) {
            list.add(e);
        }
        return list;
    }

}
